﻿using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using CookComputing.XmlRpc;
using System.Security.Cryptography;


namespace MolineSoftware.DrupalXmlRpc
{
    /// <summary>
    /// Class: Search Results for Node Search.
    /// </summary>
    [XmlRpcMissingMapping(MappingAction.Ignore)]
    public class DrupalNodeSearchResult : DrupalBase
    {
        /// <summary>
        /// Gets or Sets the Link 
        /// </summary>
        [XmlRpcMember(Description = "", Member = "link")]
        public string Link { get; set; }

        /// <summary>
        /// Gets or Sets the Title
        /// </summary>
        [XmlRpcMember(Description = "", Member = "title")]
        public string Title { get; set; }

        /// <summary>
        /// Gets or Sets the <see cref="DrupalNode"/> type
        /// </summary>
        [XmlRpcMember(Description = "", Member = "type")]
        public string Type { get; set; }

        /// <summary>
        /// Gets or Sets the Description
        /// </summary>
        [XmlRpcMember(Description = "", Member = "user")]
        public string User { get; set; }

        /// <summary>
        /// Gets or Sets the Date
        /// </summary>
        [XmlRpcMember(Description = "", Member = "date")]
        public string Date { get; set; }

        /// <summary>
        /// Gets or SEts the Snippet.
        /// </summary>
        [XmlRpcMember(Description = "", Member = "snippet")]
        public string Snippet { get; set; }

        /// <summary>
        /// Gest or Sets the Node.
        /// </summary>
        [XmlRpcMember(Description = "", Member = "node")]
        public XmlRpcStruct Node { get; set; }
    }

}
